gtk4.git
12 years agoGtkMenuTrackerItem: add support for dynamic accels
Ryan Lortie [Wed, 10 Jul 2013 02:50:14 +0000 (22:50 -0400)]
GtkMenuTrackerItem: add support for dynamic accels

Add support for pulling the primary accel out of the GtkActionMuxer.

With this change, it is no longer necessary to have the accel=''
attribute hardcoded onto each menu item (and, in fact, it should be left
off if you intend to have support for dynamic accelerator changing).

Specifying accel='' is a good way to force an accelerator not to be
displayed on a menu item.

12 years agoGtkMenuTrackerItem: use "action and target" format
Ryan Lortie [Wed, 10 Jul 2013 02:48:29 +0000 (22:48 -0400)]
GtkMenuTrackerItem: use "action and target" format

Store "action and target" format inside each GtkMenuTrackerItem.  This
makes action invocation more efficient (no hash table lookups or
allocations) and slightly simplifies handling of action namespace.

More importantly, this will be used when we start to get accels from
GtkActionMuxer.

12 years agoGtkActionMuxer: store primary accels
Ryan Lortie [Wed, 10 Jul 2013 02:37:17 +0000 (22:37 -0400)]
GtkActionMuxer: store primary accels

Reuse the existing infrastructure in GtkActionMuxer for propagation of
accelerator information: in particular, what accel label ought to appear
on menu items for a particular action and target.

This is a good idea because we want accels to travel along with the
actions that they're tied to and reusing GtkActionMuxer will allow us to
do that without creating another hierarchy of a different class for the
sole purpose of filling in accel labels on menu items.

Doing it this ways also allows those who copy/paste GtkActionMuxer to
insert the accels for themselves.

Add a new method on the GtkActionObserver interface to report changes.

This patch introduces a new concept: "action and target" notation for
actions.  This format looks like so:

  "'target'|app.action"

or for non-targeted actions:

  "|app.action"

and it is used over a number of possible alternative formats for some
good reasons:

 - it's very easy to get a nul-terminated action name out of this format
   when we need it, by using strrchr('|') + 1

 - we can also get the target out of it using g_variant_parse() because
   this function takes a pointer to a 'limit' character that is not
   parsed past: we use the '|' for this

 - it's extremely easy to hash on this format (just use a normal string
   hash) vs. attempting to hash on a string plus a GVariant

A close contender was to use detailed action strings here, but these are
not used for two reasons:

 - it's not possible to easily get the action name or target out of the
   strings without more work than the "action and target" format
   requires

 - we still intend to use detailed action strings on API (since they are
   a lot nicer to look at) but detailed action strings can be given in
   non-canonical forms (eg: 'foo::bar' and 'foo("bar")' are equivalent)
   so we'd have to go through a normalisation step anyway.  Since we're
   doing that already, we may as well convert to a more convenient
   internal format.

This new "action and target" format is going to start appearing in a lot
more places as action descriptions are introduced.

I suspect that nobody is using '|' in their action names, but in case I
am proven wrong, we can always switch to using something more exotic as
a separator character (such as '\x01' or '\xff' or the like).

12 years agoGtkWindow: change muxer setup with application
Ryan Lortie [Wed, 10 Jul 2013 02:33:22 +0000 (22:33 -0400)]
GtkWindow: change muxer setup with application

Previously, GtkWindow would add the "app" action group to its own
toplevel muxer.

Change the setup so that GtkApplication creates the toplevel muxer and
adds itself to it as "app".  Use this muxer as the parent muxer of any
GtkWindow associated with the application.

This saves a small amount of memory and will allow for accels to be
propagated from the application through to all of the windows.

12 years agoGtkBuilder: add GtkApplication
Ryan Lortie [Sun, 16 Jun 2013 20:29:50 +0000 (16:29 -0400)]
GtkBuilder: add GtkApplication

Add a GtkApplication (private) field to GtkBuilder

12 years agoFix a crash in icon handling
Matthias Clasen [Tue, 15 Oct 2013 12:04:25 +0000 (08:04 -0400)]
Fix a crash in icon handling

The load_error was freed in two places.
Fix based on a patch in
https://bugzilla.gnome.org/show_bug.cgi?id=709967

12 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 15 Oct 2013 09:12:22 +0000 (11:12 +0200)]
Updated Spanish translation

12 years agoUpdated Indonesian translation
Andika Triwidada [Tue, 15 Oct 2013 05:10:43 +0000 (12:10 +0700)]
Updated Indonesian translation

12 years agoRestore accessible names for image-only buttons
Matthias Clasen [Mon, 14 Oct 2013 14:33:32 +0000 (10:33 -0400)]
Restore accessible names for image-only buttons

With the stock system being deprecated now, we should provide
meaningful accessible names for buttons that are constructed
from icon names or GIcons. This commit reuses the existing
translations.

It is possible that some common icon names are not covered
here because they were not present as stock items. These can
be added to the table later.

12 years ago[l10n] Updated Catalan (Valencian) translation
Carles Ferrando [Sun, 13 Oct 2013 20:24:00 +0000 (22:24 +0200)]
[l10n] Updated Catalan (Valencian) translation

12 years ago[l10n] Update Catalan translation
Gil Forcada [Sun, 13 Oct 2013 20:23:34 +0000 (22:23 +0200)]
[l10n] Update Catalan translation

12 years agoUpdated translation for Afrikaans (af)
Friedel Wolff [Sun, 13 Oct 2013 15:26:13 +0000 (17:26 +0200)]
Updated translation for Afrikaans (af)

12 years agoBug 709939 - monitor reconfiguration while GtkOffscreenWindows
Charles Reiss [Fri, 11 Oct 2013 22:53:37 +0000 (15:53 -0700)]
Bug 709939 - monitor reconfiguration while GtkOffscreenWindows

exist triggers crash on quartz. Special case the position update
to ignore the off-screen windows.

12 years agoQuell a compiler warning
Matthias Clasen [Fri, 11 Oct 2013 02:14:32 +0000 (22:14 -0400)]
Quell a compiler warning

12 years agoNULL check on default keymap
Philip Chimento [Wed, 28 Aug 2013 06:46:22 +0000 (23:46 -0700)]
NULL check on default keymap

Ensure that Quartz's default keymap is not accessed before it is
created.

12 years agoFix infinite loop in gdkevents.c _gdk_event_queue_find_first
Hamish Mackenzie [Sat, 28 Sep 2013 16:06:53 +0000 (05:06 +1300)]
Fix infinite loop in gdkevents.c _gdk_event_queue_find_first

12 years agoEnsure src and dest are GdkWindows in _gdk_sythesize_crossing_events
John Ralls [Fri, 11 Oct 2013 17:40:50 +0000 (10:40 -0700)]
Ensure src and dest are GdkWindows in _gdk_sythesize_crossing_events

Discovered via a crash because b's (dest's) toplevel was NULL;
ensuring that the dest is actually a GdkWindow or setting b to NULL
prevents that path from being taken.

12 years agoFix double-free introduced in f86dc163
John Ralls [Fri, 11 Oct 2013 17:40:26 +0000 (10:40 -0700)]
Fix double-free introduced in f86dc163

12 years agospinner: don't expand to fill the allocated space
William Jon McCann [Thu, 10 Oct 2013 20:54:16 +0000 (16:54 -0400)]
spinner: don't expand to fill the allocated space

Spinners are essentially animated symbolic icons. We don't really
want them being rendered to arbitrary sizes. Also the current
technique for rendering the activity is not suitable for larger
sizes. Until we have a better technique we should limit the size
to the MENU icon size or exactly twice that size.

12 years agolistbox: Fix keynav_failed() parameter in move_cursor()
Florian Müllner [Tue, 8 Oct 2013 21:56:19 +0000 (23:56 +0200)]
listbox: Fix keynav_failed() parameter in move_cursor()

The 'direction' parameter to gtk_widget_keynav_failed() is based on
gtk_list_box_move_cursor()'s 'count' parameter. However if the passed
in movement is GTK_MOVEMENT_DISPLAY_LINES, 'count' is modified by
the keynav handling and will always be 0. To avoid messing up the
'direction' parameter, use a local variable for keynav handling and
leave 'count' untouched.

https://bugzilla.gnome.org/show_bug.cgi?id=709687

12 years agoGMenu docs: Tiny grammar fix
Murray Cumming [Fri, 11 Oct 2013 08:25:24 +0000 (10:25 +0200)]
GMenu docs: Tiny grammar fix

12 years agoL10N: Updated Persian translations
Arash Mousavi [Fri, 11 Oct 2013 06:26:24 +0000 (09:56 +0330)]
L10N: Updated Persian translations

12 years agoSuppress cursor theme unsupported warning when there's no theme.
John Ralls [Thu, 10 Oct 2013 22:35:41 +0000 (15:35 -0700)]
Suppress cursor theme unsupported warning when there's no theme.

12 years agoImplement gtk_drag_begin_with_coordinates () for quartz.
John Ralls [Thu, 10 Oct 2013 22:34:08 +0000 (15:34 -0700)]
Implement gtk_drag_begin_with_coordinates () for quartz.

12 years agoSuppress frequent device assertions
John Ralls [Thu, 10 Oct 2013 22:24:43 +0000 (15:24 -0700)]
Suppress frequent device assertions

Because send crossing event is usually called with a NULL source_device in quartz.

12 years agoQuartz: Set the drag context target list
John Ralls [Thu, 10 Oct 2013 22:21:35 +0000 (15:21 -0700)]
Quartz: Set the drag context target list

So that gdk_drag_context_list_targets() actually returns something.

12 years agoGtkCellRendererToggle: correct "toggled" signal documentation
Dan Williams [Thu, 10 Oct 2013 21:31:44 +0000 (16:31 -0500)]
GtkCellRendererToggle: correct "toggled" signal documentation

Previous commit wrongly identified "active" as containing the new
value.  Instead, applications must determine the new value to
update the model with manually based on the value currently in the
model.

12 years agoGtkCellRendererToggle: update documentation of 'toggled' signal
Dan Williams [Thu, 10 Oct 2013 20:33:36 +0000 (15:33 -0500)]
GtkCellRendererToggle: update documentation of 'toggled' signal

Clarify that applications are expected to handle updating the model
from the 'active' property, like GtkCellRendererText does for the
'edited' property.

12 years agosearch-bar: use menu icon size for the close button
William Jon McCann [Wed, 9 Oct 2013 23:19:12 +0000 (19:19 -0400)]
search-bar: use menu icon size for the close button

12 years agosearch-bar: make independent of toolbar styling
William Jon McCann [Wed, 9 Oct 2013 23:10:40 +0000 (19:10 -0400)]
search-bar: make independent of toolbar styling

Don't use a toolbar as an implementation detail of the search bar
to make styling them differently a bit easier.

12 years agoGtkSearchBar: replace incomplete example with a real one
Xavier Claessens [Wed, 9 Oct 2013 15:57:42 +0000 (11:57 -0400)]
GtkSearchBar: replace incomplete example with a real one

https://bugzilla.gnome.org/show_bug.cgi?id=709745

12 years agoAdd example app for GtkSearchBar
Xavier Claessens [Wed, 9 Oct 2013 15:47:30 +0000 (11:47 -0400)]
Add example app for GtkSearchBar

https://bugzilla.gnome.org/show_bug.cgi?id=709745

12 years agoGtkMenu: Document that gtk_widget_insert_action_group() can be used
Xavier Claessens [Thu, 10 Oct 2013 17:00:53 +0000 (13:00 -0400)]
GtkMenu: Document that gtk_widget_insert_action_group() can be used

12 years agoUpdated Hungarian translation
Gabor Kelemen [Thu, 10 Oct 2013 12:55:08 +0000 (14:55 +0200)]
Updated Hungarian translation

12 years agorevealer: Use the same transition animation as GtkStack
Jasper St. Pierre [Wed, 9 Oct 2013 22:29:19 +0000 (18:29 -0400)]
revealer: Use the same transition animation as GtkStack

12 years agostack: Remove some confusing whitespace
Jasper St. Pierre [Wed, 9 Oct 2013 22:26:34 +0000 (18:26 -0400)]
stack: Remove some confusing whitespace

12 years agoFix GI warnings
Jasper St. Pierre [Wed, 9 Oct 2013 18:09:35 +0000 (14:09 -0400)]
Fix GI warnings

12 years agostack: Warn when setting a visible child which is not in the stack
David King [Mon, 7 Oct 2013 12:46:16 +0000 (13:46 +0100)]
stack: Warn when setting a visible child which is not in the stack

https://bugzilla.gnome.org/show_bug.cgi?id=709613

12 years agoAdd various tests for stock widgets
Matthias Clasen [Mon, 7 Oct 2013 22:19:16 +0000 (18:19 -0400)]
Add various tests for stock widgets

This test demonstrates that various deprecated ways
to construct buttons and menuitems still work as they
are supposed to, including always-show-image functionality.

12 years agoAnother forgotten a11y header
Matthias Clasen [Mon, 7 Oct 2013 20:43:11 +0000 (16:43 -0400)]
Another forgotten a11y header

12 years agorange: start autoscrolling near the edges of ranges
William Jon McCann [Mon, 7 Oct 2013 16:01:13 +0000 (12:01 -0400)]
range: start autoscrolling near the edges of ranges

If a range goes all the way to the edge of the screen then we don't
have any way to activate autoscrolling. By adding a small region
at the ends of the range we can handle this case. This is the same
approach used in treeviews.

12 years agoMake gtk-demo use the newer app icon
Jasper St. Pierre [Mon, 7 Oct 2013 20:28:04 +0000 (16:28 -0400)]
Make gtk-demo use the newer app icon

12 years agoInstall flowbox a11y headers
Matthias Clasen [Mon, 7 Oct 2013 20:29:11 +0000 (16:29 -0400)]
Install flowbox a11y headers

Pointed out by Jasper St. Pierre.

12 years agoUpdated POTFILES.in
Piotr Drąg [Mon, 7 Oct 2013 20:22:01 +0000 (22:22 +0200)]
Updated POTFILES.in

12 years agobroadway: Don't bother memdup-ing
Jasper St. Pierre [Thu, 26 Sep 2013 18:09:35 +0000 (14:09 -0400)]
broadway: Don't bother memdup-ing

If we're going to run off the end due to an invalid message,
we're going to run off the end. We'll protect this by doing
proper bounds checking in the future, but the malloc gives
us nothing for now.

12 years agobroadway: Use a binary protocol to send to the server
Jasper St. Pierre [Thu, 26 Sep 2013 16:21:08 +0000 (12:21 -0400)]
broadway: Use a binary protocol to send to the server

This makes the protocol easier to inspect over the wire and makes all
commands fixed-length.

12 years agobroadway: Remove authentication support
Jasper St. Pierre [Thu, 26 Sep 2013 18:04:34 +0000 (14:04 -0400)]
broadway: Remove authentication support

12 years agobroadway: Remove support for old browsers
Jasper St. Pierre [Wed, 25 Sep 2013 15:59:40 +0000 (11:59 -0400)]
broadway: Remove support for old browsers

Require binary array buffers and modern WebSocket protocol support.

12 years agoUpdate Arabic translation
Khaled Hosny [Mon, 7 Oct 2013 15:07:13 +0000 (17:07 +0200)]
Update Arabic translation

12 years agoSome updates
Matthias Clasen [Mon, 7 Oct 2013 13:05:43 +0000 (09:05 -0400)]
Some updates

12 years agoTajik translation updated
Victor Ibragimov [Mon, 7 Oct 2013 10:15:06 +0000 (15:15 +0500)]
Tajik translation updated

12 years agoUpdate Visual Studio Property Sheets
Chun-wei Fan [Mon, 7 Oct 2013 05:00:14 +0000 (13:00 +0800)]
Update Visual Studio Property Sheets

"Install" the GtkFlowBox headers

12 years agoVisual Studio 2010 Property Sheets: Cosmetics
Chun-wei Fan [Mon, 7 Oct 2013 04:55:35 +0000 (12:55 +0800)]
Visual Studio 2010 Property Sheets: Cosmetics

Make each file entry of non-autotools-completed .vcxproj.filters to be on
one line only, for consistency reasons.

12 years agoUpdate gtk3-demo Visual Studio Projects
Chun-wei Fan [Mon, 7 Oct 2013 04:17:04 +0000 (12:17 +0800)]
Update gtk3-demo Visual Studio Projects

Build the recently-introduced flowbox.c demo into the gtk3-demo demo
program.

12 years agogtk/gtkflowbox: Fix build warning/error
Chun-wei Fan [Mon, 7 Oct 2013 04:00:30 +0000 (12:00 +0800)]
gtk/gtkflowbox: Fix build warning/error

The newly-added gtk_flow_box_child_is_selected() needed to return a
gboolean, so use g_return_val_if_fail() to return FALSE when an invalid
GtkFlowBoxChild* is passed in.

12 years agoCosmetics
Matthias Clasen [Mon, 7 Oct 2013 04:05:47 +0000 (00:05 -0400)]
Cosmetics

Make the gtk-demo listbox example follow others in window
title style.

12 years agoAdd a flow box example to gtk-demo
Matthias Clasen [Mon, 7 Oct 2013 04:05:21 +0000 (00:05 -0400)]
Add a flow box example to gtk-demo

12 years agoTweak flowbox selection behaviour
Matthias Clasen [Mon, 7 Oct 2013 03:15:27 +0000 (23:15 -0400)]
Tweak flowbox selection behaviour

Make flowbox selection more orthodox. Control and Shift now
modify the selection behaviour pretty much in the same way
they do in a tree view, and clicking without modifiers will
clear the selection.

When dealing with touch devices, we treat modifier-less events
as modifying the selection.

This commit also adds a few other selection necessities, such
as catching Escape key presses to cancel rubberband selection,
and handling grab notify.

12 years agoMake resetting a filter work properly
Matthias Clasen [Tue, 1 Oct 2013 01:57:41 +0000 (21:57 -0400)]
Make resetting a filter work properly

We need to make sure all children are marked as child-visible
again when the filter func is reset.

12 years agoFix wording in the docs
Matthias Clasen [Tue, 1 Oct 2013 00:57:43 +0000 (20:57 -0400)]
Fix wording in the docs

12 years agoAdd GtkFlowBox
Matthias Clasen [Sun, 29 Sep 2013 17:43:27 +0000 (13:43 -0400)]
Add GtkFlowBox

GtkFlowBox is a container that its children in a reflowing
grid, which can be oriented horizontally or vertically.

It is similar to GtkListBox in that the children can
be sorted and filtered, and by requiring a dedicated child
widget type, GtkFlowBoxChild. It is similar to GtkTreeView
in that is supports a full set of selection modes, including
rubberband selection.

This is the culmination of work that has happened in the
egg-list-box module, and earlier in libegg. The origins of
this code are the EggSpreadTable in libegg, which was written
by Tristan van Berkom. It was moved to egg-list-box and
renamed EggFlowBox by Jon McCann, and I gave it some finishing
touched in the flowbox-improvements branch of that module.

12 years agowidget-factory: Remove accel-groups
Benjamin Otte [Sun, 6 Oct 2013 20:20:55 +0000 (22:20 +0200)]
widget-factory: Remove accel-groups

GtkMenuItem doesn't have accel groups anymore.

12 years agoPopulate GtkPlacesSidebar at initialization
John Lindgren [Sun, 6 Oct 2013 17:58:00 +0000 (17:58 +0000)]
Populate GtkPlacesSidebar at initialization

Previously, the "Places" sidebar was populated by the update_places()
call from within gtk_places_sidebar_style_set(). After
742a2f11a95a1e9ce56fe1a628743c7e8add8a57, update_places() is never called
and the sidebar is never populated unless gtk_places_sidebar_add_shortcut()
happens to be called. This commit fixes this by calling update_places()
at the end of gtk_places_sidebar_init().

https://bugzilla.gnome.org/show_bug.cgi?id=709522

12 years agoFix generation of plug/socket docs
Matthias Clasen [Sun, 6 Oct 2013 19:49:00 +0000 (15:49 -0400)]
Fix generation of plug/socket docs

The docs for GtkPlug/GtkSocket were not generated if any
of the win32, quartz, wayland backends were enabled. What
we really mean though, is that we want the docs to be generated
whenever GtkPlug/GtkSocket are included in the library, which
is when the x11 backend is enabled.

12 years agoFix build with explicit --enable-wayland-backend
Matthias Clasen [Sun, 6 Oct 2013 19:32:18 +0000 (15:32 -0400)]
Fix build with explicit --enable-wayland-backend

We forgot to set set WAYLAND_SCANNER in this case.

12 years agoconfigure: Make Wayland backend optional
Matthias Clasen [Sun, 6 Oct 2013 19:13:48 +0000 (15:13 -0400)]
configure: Make Wayland backend optional

As long as we are not ready to switch over the default backend,
arrange ./configure without explicit backend options makes the
x11 backend mandatory and the wayland backend optional (depending
on whether we find Wayland dependencies).

http://bugzilla.gnome.org/show_bug.cgi?id=709212

12 years agoRemove opacity-groups
Alexander Larsson [Thu, 4 Jul 2013 11:41:00 +0000 (11:41 +0000)]
Remove opacity-groups

GtkWidget had a hack where if opacity is 0.999 we set up an opacity group when
rendering the widget. This is no longer needed in 3.10, and GtkStack doesn't
use it anymore.

GdStack is using it, so applications should be ported from GdStack to GtkStack
in 3.12.

https://bugzilla.gnome.org/show_bug.cgi?id=703603

12 years agoa11y: Drop obsolete focus tab handling in notebooks
Matthias Clasen [Wed, 13 Feb 2013 03:36:20 +0000 (22:36 -0500)]
a11y: Drop obsolete focus tab handling in notebooks

GtkNotebook lost the concept of a separate 'focus tab' ages ago.
Time for the accessible implementation to follow suit.

https://bugzilla.gnome.org/show_bug.cgi?id=693586

12 years agoRemove unused function
Timothy Arceri [Thu, 3 Oct 2013 21:37:48 +0000 (07:37 +1000)]
Remove unused function

https://bugzilla.gnome.org/show_bug.cgi?id=586107
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
12 years agoRemove a bunch of unused variables.
Timothy Arceri [Thu, 3 Oct 2013 21:36:24 +0000 (07:36 +1000)]
Remove a bunch of unused variables.

https://bugzilla.gnome.org/show_bug.cgi?id=586107
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
12 years agoDont set enum to NULL fixes build issues on Solaris 10
Timothy Arceri [Thu, 3 Oct 2013 21:21:55 +0000 (07:21 +1000)]
Dont set enum to NULL fixes build issues on Solaris 10

https://bugzilla.gnome.org/show_bug.cgi?id=586107
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
12 years agoReorder message in configure.ac to display result on the same line
Timothy Arceri [Sat, 28 Sep 2013 23:18:38 +0000 (09:18 +1000)]
Reorder message in configure.ac to display result on the same line

https://bugzilla.gnome.org/show_bug.cgi?id=341146

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
12 years agoAdjust expected output of a11y tests
Matthias Clasen [Sun, 6 Oct 2013 05:12:42 +0000 (01:12 -0400)]
Adjust expected output of a11y tests

This is belatedly updating the tests after
5315661721137c1f195fa88c2bf12f1a3e32ecfa

12 years agocsd: Keep a maximized flag
Matthias Clasen [Sun, 6 Oct 2013 04:41:27 +0000 (00:41 -0400)]
csd: Keep a maximized flag

This mirrors what we do for fullscreen and tiled.

12 years agocsd: add style classes for tiled and maximized
Matthias Clasen [Sun, 6 Oct 2013 04:35:05 +0000 (00:35 -0400)]
csd: add style classes for tiled and maximized

This lets us change the border radius when the window is
in one of these states.

https://bugzilla.gnome.org/show_bug.cgi?id=709215

12 years agoGtkWindow: Override gtk_container_remove ()
Kjell Ahlstedt [Thu, 3 Oct 2013 17:07:37 +0000 (19:07 +0200)]
GtkWindow: Override gtk_container_remove ()

Check which child is being removed, title_box or the GtkBin child.

https://bugzilla.gnome.org/show_bug.cgi?id=709049

12 years agocsd: properly check titlebar visibility
Matthias Clasen [Sun, 6 Oct 2013 03:17:02 +0000 (23:17 -0400)]
csd: properly check titlebar visibility

Now that we are using child-visible to hide titlebars, we need to
adjust the visibility checks in various places to take it into account.

https://bugzilla.gnome.org/show_bug.cgi?id=709323

12 years agoFix dark theme issues in the print dialog
Matthias Clasen [Sun, 6 Oct 2013 03:02:54 +0000 (23:02 -0400)]
Fix dark theme issues in the print dialog

The dimensions in the n-up illustration were not using the
color of the style for drawing.

https://bugzilla.gnome.org/show_bug.cgi?id=709420

12 years agoicontheme: Use gdk_rgba_to_string()
Benjamin Otte [Sat, 5 Oct 2013 19:31:33 +0000 (21:31 +0200)]
icontheme: Use gdk_rgba_to_string()

This gives us valid CSS. And now that librsvg parses valid CSS, that's a
fine thing to use.

And it fixes the problem where %g is locale-dependent.

12 years agocontainer: Deprecate resize mode
Benjamin Otte [Sat, 5 Oct 2013 12:57:53 +0000 (14:57 +0200)]
container: Deprecate resize mode

Resize modes don't work anymore, both because nobody ever uses them and
because the frame clock changed the way things work quite a bit. So we
don't want to advertise them as a good idea.

https://bugzilla.gnome.org/show_bug.cgi?id=708787

12 years agotestgtk: Remove idle test
Benjamin Otte [Sat, 5 Oct 2013 12:57:24 +0000 (14:57 +0200)]
testgtk: Remove idle test

The test is broken, written like it's 1999 and testing a feature that
I'm about to deprecate.

12 years agoreftests: Add a test for the symbolic color fix
Benjamin Otte [Sat, 5 Oct 2013 11:57:29 +0000 (13:57 +0200)]
reftests: Add a test for the symbolic color fix

12 years agoicontheme: Use rgba() when loading symbolic icons
Benjamin Otte [Sat, 5 Oct 2013 11:53:25 +0000 (13:53 +0200)]
icontheme: Use rgba() when loading symbolic icons

This way, we correctly pass on translucency information. Note: This
currently requires librsvg master.

12 years agostylecontext: Deprecate gtk_style_context_invalidate()
Benjamin Otte [Tue, 1 Oct 2013 13:09:20 +0000 (15:09 +0200)]
stylecontext: Deprecate gtk_style_context_invalidate()

Everything is invalidated automatically these days.

12 years agotests: Don't call gtk_style_context_invalidate()
Benjamin Otte [Tue, 1 Oct 2013 13:08:55 +0000 (15:08 +0200)]
tests: Don't call gtk_style_context_invalidate()

It's not needed anymore.

12 years agotexthandle: Use the parent widget's style context
Benjamin Otte [Tue, 1 Oct 2013 13:08:30 +0000 (15:08 +0200)]
texthandle: Use the parent widget's style context

... instead of creating our own.

12 years agotestsuite: Remove extra calls to gtk_style_context_invalidate()
Benjamin Otte [Tue, 1 Oct 2013 13:03:45 +0000 (15:03 +0200)]
testsuite: Remove extra calls to gtk_style_context_invalidate()

They aren't needed anymore.

12 years agoImprove doc of gtk_style_context_invalidate()
Sébastien Wilmet [Sat, 28 Sep 2013 14:19:07 +0000 (16:19 +0200)]
Improve doc of gtk_style_context_invalidate()

https://bugzilla.gnome.org/show_bug.cgi?id=708583

12 years agonotebook: inform the theme to draw borders when requested
William Jon McCann [Fri, 4 Oct 2013 22:01:31 +0000 (18:01 -0400)]
notebook: inform the theme to draw borders when requested

When the show-border property is TRUE ask the theme to draw
borders on the notebook header.

12 years agonotebook: add style classes for orientation to the header
William Jon McCann [Fri, 4 Oct 2013 21:53:55 +0000 (17:53 -0400)]
notebook: add style classes for orientation to the header

12 years agonotebook: correctly define the header region
William Jon McCann [Fri, 4 Oct 2013 21:34:48 +0000 (17:34 -0400)]
notebook: correctly define the header region

Correctly define the header region to only be the area under the
tabs.

12 years agoplaces sidebar: Small cleanup
Debarshi Ray [Thu, 3 Oct 2013 16:30:39 +0000 (18:30 +0200)]
places sidebar: Small cleanup

12 years agogtk_list_box_set_focus: Handle ist_box == NULL
Timm Bäder [Thu, 3 Oct 2013 12:00:30 +0000 (14:00 +0200)]
gtk_list_box_set_focus: Handle ist_box == NULL

Rows without a parent GtkListBox can happen in Glade and its previewer.

12 years agogengir_gtk.bat: Correctly handle time_t
Chun-wei Fan [Thu, 3 Oct 2013 09:24:17 +0000 (17:24 +0800)]
gengir_gtk.bat: Correctly handle time_t

...on x64 Windows/MSVC builds.  This is because time_t is a long long on
x64 arch on Windows.

12 years agoiconhelper: Fix leak when rendering to cairo surface
Bastien Nocera [Wed, 2 Oct 2013 13:33:20 +0000 (15:33 +0200)]
iconhelper: Fix leak when rendering to cairo surface

https://bugzilla.gnome.org/show_bug.cgi?id=709264

12 years agoiconhelper: Use g_clear_* helpers
Bastien Nocera [Wed, 2 Oct 2013 13:06:36 +0000 (15:06 +0200)]
iconhelper: Use g_clear_* helpers

https://bugzilla.gnome.org/show_bug.cgi?id=709264

12 years agoicon-theme: Fix 2 memory leaks in GtkIconInfo
Bastien Nocera [Wed, 2 Oct 2013 12:30:14 +0000 (14:30 +0200)]
icon-theme: Fix 2 memory leaks in GtkIconInfo

https://bugzilla.gnome.org/show_bug.cgi?id=709264

12 years agoicon-theme: Use g_clear_* helpers in finalize
Bastien Nocera [Wed, 2 Oct 2013 12:28:00 +0000 (14:28 +0200)]
icon-theme: Use g_clear_* helpers in finalize

https://bugzilla.gnome.org/show_bug.cgi?id=709264

12 years agonotebook: Add a style property for whether to draw a tab gap
William Jon McCann [Mon, 30 Sep 2013 22:57:58 +0000 (18:57 -0400)]
notebook: Add a style property for whether to draw a tab gap

Add a has-tab-gap style property to GtkNotebook so that we can
disable drawing the gap between tabs and the page in the Adwaita
theme without breaking existing themes.

https://bugzilla.gnome.org/show_bug.cgi?id=707920

12 years agonotebook: Fix rounding error in vertical alignment of arrow
William Jon McCann [Wed, 7 Aug 2013 11:01:34 +0000 (13:01 +0200)]
notebook: Fix rounding error in vertical alignment of arrow

https://bugzilla.gnome.org/show_bug.cgi?id=707920